<template>
  <div>
    <div class="box"> <img :src="imgsrc" alt="">
    <p>这是一个孤独狗狗！</p></div>
   
  </div>
</template>

<script>
export default {
data(){
    return{
        imgsrc:'https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg'
    }
}
}
</script>

<style>

.box{
    float: left;
    width: 300px;
    border: 1px solid black;
    margin-left: 3px;
}
img{
    width: 300px;

}
</style>